package com.mxpio.erp.common.controller;

import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mxpio.erp.common.Constant;
import com.mxpio.erp.common.vo.ModuleVO;
import com.mxpioframework.common.vo.Result;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "CommonController", description = "公共接口")
@RestController
@RequestMapping("/erp/common/")
public class CommonController {
	
	@GetMapping("module/list")
	@Operation(summary = "模块列表", description = "获取模块列表", method = "GET")
	public Result<List<ModuleVO>> moduleList() {
		return Result.OK(Constant.getModules());
	}
	
}
